Learn R Programming

Directional (version 2.2)

Spherical-spherical correlation: Spherical-spherical correlation

Description

Correlation between two spherical variables.

Usage

spher.cor(x, y)

Arguments

x
A spherical variable.
y
A spherical variable

Value

A vector including: A vector including:

Details

A very similar to the classical correlation is calcualted. In addition, a hypothesis test for no correlation is performed. Note, that this is a squared correlation actually, so negative values will never be returned.

References

Kanti V. Mardia and Peter E. Jupp. Directional statistics, pg. 254--255.

See Also

spher.reg, vmf, circ.cor1, circ.cor2

Examples

Run this code
x <- rvmf(100, rnorm(3), 10)
y <- rvmf(100, rnorm(3), 10)
spher.cor(x, y)

Run the code above in your browser using DataLab